package com.example.imtoken.modules.main.wallet.add_token

import androidx.recyclerview.widget.DiffUtil
import com.example.imtoken.entitys.http.CoinsEntityItem

class AddTokenDiffCallback : DiffUtil.ItemCallback<CoinsEntityItem>() {
    override fun areItemsTheSame(oldItem: CoinsEntityItem, newItem: CoinsEntityItem): Boolean {
        return oldItem.name == newItem.name
    }

    override fun areContentsTheSame(oldItem: CoinsEntityItem, newItem: CoinsEntityItem): Boolean {
        return oldItem.isAddToken == newItem.isAddToken
    }

}